﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace OnlineBattlemat
{
    public partial class PlayerPanel : UserControl
    {
        private bool m_IsExpanded = true;

        public PlayerPanel()
        {
            InitializeComponent();
        }

        private void x_ShrinkGrowButton_Click(object sender, RoutedEventArgs e)
        {
            if (m_IsExpanded)
            {
                m_IsExpanded = false;
                x_ShrinkGrowButton.Content = "<";
                CollapseAnimation.Begin();
            }
            else
            {
                m_IsExpanded = true;
                x_ShrinkGrowButton.Content = ">";
                RestoreAnimation.Begin();
            }
        }
    }
}
